# makefile for creating itLib
# compile the cpp files to object files .o
# then pack them into a library using ar


#define variables

LDIR = ../lib 
INC = ../include
CFLAGS = -std=c++11 -Wall

#create Geffe
Geffe : geffe.h geffeMain.cpp geffe.cpp
	g++ $(CFLAGS) -I $(INC) -L $(LDIR) -o Geffe geffe.cpp geffeMain.cpp -litLib

#create geffeBrute
geffeBrute : geffe.h geffeBrute.cpp geffe.cpp
	g++ $(CFLAGS) -O3 -I $(INC) -L $(LDIR) -o geffeBrute geffe.cpp geffeBrute.cpp -litLib

#create geffeCorr
geffeCorr : geffe.h geffeCorr.cpp geffe.cpp 
	g++ $(CFLAGS) -I $(INC) -L $(LDIR) -o geffeCorr geffe.cpp geffeCorr.cpp -litLib

#removing binary and object files
clean: 
	rm -f *~ *.o *.a





